home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / AIncludes / QDOffscreen.a < prev    next >
Encoding:
Text File  |  1993-11-30  |  2.0 KB  |  54 lines  |  [TEXT/MPS ]

  1. ;    File:        QDOffscreen.a
  2. ;
  3. ;    Copyright:    © 1983-1993 by Apple Computer, Inc.
  4. ;                All rights reserved.
  5. ;
  6. ;    Version:    System 7.1 for ETO #11
  7. ;    Created:    Tuesday, March 30, 1993 18:00
  8. ;
  9. ;___________________________________________________________________________
  10.  
  11.     IF &TYPE('__INCLUDINGQDOFFSCREEN__') = 'UNDEFINED' THEN
  12. __INCLUDINGQDOFFSCREEN__    SET    1
  13.  
  14. ; New Error codes
  15.  
  16. cDepthErr         EQU         -157                      ; invalid pixel depth
  17.  
  18. ; Flag bits passed to or returned by UpdateGWorld
  19.  
  20. purgePixBit       EQU         0                         ; make the offscreen buffer purgeable
  21. noNewDeviceBit    EQU         1                         ; don't create an offscreen device
  22. useTempMemBit      EQU         2                         ; create the buffer in MF temp. memory
  23. keepLocalBit    EQU            3                        ; keep buffer in main memory
  24. pixelsPurgeableBit EQU        6                         ; pixels are purgeable
  25. pixelsLockedBit   EQU         7                         ; pixels are locked
  26. mapPixBit         EQU         16                        ; set if color table mapping occurred
  27. newDepthBit       EQU         17                        ; set if pixels were scaled to a different depth
  28. alignPixBit       EQU         18                        ; set if pixels were realigned to screen alignment
  29. newRowBytesBit    EQU         19                        ; set if pixmap was reconfigured in a new rowBytes
  30. reallocPixBit     EQU         20                        ; set if offscreen buffer had to be reallocated
  31. clipPixBit        EQU         28                        ; set if pixels were or are to be clipped
  32. stretchPixBit     EQU         29                        ; set if pixels were or are to be stretched/shrinked
  33. ditherPixBit      EQU         30                        ; set if pixels were or are to be dithered
  34. gwFlagErrBit      EQU         31                        ; sign bit set indicates error
  35.  
  36. ; Mask equivalents of the above bits
  37.  
  38. purgePix          EQU         $1
  39. noNewDevice       EQU         $2
  40. useTempMem         EQU         $4
  41. keepLocal        EQU            $8
  42. pixelsPurgeable EQU         $40
  43. pixelsLocked      EQU         $80
  44. mapPix            EQU         $10000
  45. newDepth          EQU         $20000
  46. alignPix          EQU         $40000
  47. newRowBytes       EQU         $80000
  48. reallocPix        EQU         $100000
  49. clipPix           EQU         $10000000
  50. stretchPix        EQU         $20000000
  51. ditherPix         EQU         $40000000
  52. gwFlagErr         EQU         $80000000
  53.  
  54.     ENDIF    ; ...already included